package com.abcd.godating.service;

import java.util.List;

import org.bson.types.ObjectId;

import com.abcd.godating.domain.Message;

public interface MessageService {

	public abstract void delete(long who, boolean isFrom, ObjectId... ids);

	public abstract List<Message> getBetween(long who, long withWho, int skip,
			int limit);

	public abstract List<Message> getIncoming(long to, int skip, int limit);

	public abstract List<Message> getIncomingUnRead(long to, int skip, int limit);

	public abstract List<Message> getOutgoing(long from, int skip, int limit);

	public abstract boolean hasUnread(long to);

	public abstract Message read(ObjectId id, long who, boolean isFrom);

	public abstract Message sent(long from, long to, String content);
}
